<template>
	<view>
		<image src="/static/home/bg@2x.png" class="pagebg" mode=""></image>
		<view class="con">
			<u-status-bar></u-status-bar>
			<view class="con__top">
				<view class="u-flex u-flex-between u-flex-y-center">
					<view class="u-flex u-flex-items-end">
						<view class="con__top__title">
							我的
						</view>
						<image src="/static/home/cxcf.png" class="con__top__titlebg" mode=""></image>
					</view>
				</view>
			</view>
			<view class="con__info">
				<image src="/static/my/mrtx.png" class="con__info__tx" mode="aspectFill"></image>
				<view class="" style="flex: 1;">
					<view class="con__info__name">
						健康君2791
					</view>
					<view class="con__info__qm">
						我运动，我快乐
					</view>
				</view>
				<image src="/static/fenlei/more.png" class="con__info__more" mode=""></image>
			</view>
			<view class="con__vip">
				<image src="/static/my/vipbg.png" class="con__vip__bg" mode=""></image>
				<view class="con__vip__content">
					<view class="">
						<view class="con__vip__content__name">
							<image src="/static/my/vip.png" class="con__vip__content__name__icon" mode=""></image>
							会员中心
						</view>
						<view class="con__vip__content__tip">
							解锁全部运动锻炼
						</view>
					</view>
					<view class="con__vip__content__btn">
						立即开通
					</view>
				</view>
			</view>
			<view class="con__box">
				<view class="con__box__item" v-for="(item,index) in list" :key="index">
					<image :src="'/static/my/'+index+'.png'" :style="{height:item.h}" class="con__box__item__icon" mode=""></image>
					<view class="con__box__item__label">
						{{item.text}}
					</view>
					<image src="/static/fenlei/more.png" class="con__box__item__more" mode=""></image>
				</view>
			</view>
		</view>
		<tabbar :current="3"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{
					text:'分享7分钟给朋友',h:'28rpx'
				},{
					text:'联系客服领会员',h:'28rpx'
				},{
					text:'锻炼设置',h:'30rpx'
				},{
					text:'数据同步',h:'18.8rpx'
				},{
					text:'系统设置',h:'26rpx'
				}]
			};
		},

	}
</script>

<style lang="scss">
	.con {
		position: relative;
		padding: 40rpx 32rpx 8rpx;
		z-index: 1;

		&__top {
			padding: 0 8rpx;
			margin-bottom: 52rpx;

			&__title {
				font-family: SourceHanSansCN;
				font-weight: bold;
				font-size: 60rpx;
				color: #000000;
				line-height: 60rpx;
			}

			&__titlebg {
				width: 128rpx;
				height: 40rpx;
				margin-left: 12rpx;
			}
		}
		&__info{
			padding: 0 28rpx 0 4rpx;
			display: flex;
			align-items: center;
			&__tx{
				width: 96rpx;
				height: 96rpx;
				border-radius: 50%;
				border: 2rpx solid #FFFFFF;
				margin-right: 28rpx;
			}
			&__name{
				font-family: SourceHanSansCN, SourceHanSansCN;
				font-weight: bold;
				font-size: 32rpx;
				color: #000000;
				line-height: 32rpx;
			}
			&__qm{
				font-family: SourceHanSansCN, SourceHanSansCN;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
				line-height: 24rpx;
				margin-top: 12rpx;
			}
			&__more{
				width: 12rpx;
				height: 20rpx;
			}
		}
		&__vip{
			width: 686rpx;
			height: 132rpx;
			position: relative;
			overflow: hidden;
			border-radius: 28rpx;
			margin-top: 48rpx;
			margin-bottom: 32rpx;
			&__bg{
				width: 686rpx;
				height: 132rpx;
				position: absolute;
				top: 0;
				left: 0;
			}
			&__content{
				position: relative;
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 0 36rpx;
				height: 132rpx;
				&__name{
					display: flex;
					align-items: center;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					font-size: 32rpx;
					color: #FFDFC2;
					line-height: 45rpx;
					&__icon{
						width: 36rpx;
						height: 30rpx;
						margin-right: 12rpx;
					}
				}
				&__tip{
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #E9C4A2;
					line-height: 33rpx;
					margin-top: 3rpx;
				}
				&__btn{
					width: 140rpx;
					height: 60rpx;
					background: linear-gradient( 90deg, #FFEAC9 0%, #FFBC61 100%);
					border-radius: 30rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #7F5511;
					line-height: 33rpx;
				}
			}
		}
		&__box{
			padding: 0 32rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 4rpx 32rpx 0rpx rgba(217,217,217,0.5);
			border-radius: 20rpx;
			&__item{
				height: 102rpx;
				display: flex;
				align-items: center;
				border-bottom: 1rpx solid #EEEEEE;
				padding-left: 4rpx;
				&__icon{
					width: 28rpx;
					margin-right: 20rpx;
				}
				&__label{
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					flex: 1;
				}
				&__more{
					width: 12rpx;
					height: 20rpx;
				}
				&:last-child{
					border-bottom: 0;
				}
			}
		}
	}
</style>